home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13648 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 75 | 72 73 6c 65 79 2e 69 62 |Path: hu|rsley.ib|
|00000010| 6d 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |m.com!ne|ws.From:|
|00000020| 20 4d 61 78 20 57 61 74 | 65 72 6d 61 6e 20 3c 64 | Max Wat|erman <d|
|00000030| 77 61 74 65 72 40 77 69 | 67 68 74 2e 68 75 72 73 |water@wi|ght.hurs|
|00000040| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 3e 0a 4e 65 77 |ley.ibm.|com>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ng.c.Sub|ject: Re|
|00000070| 3a 20 48 65 6c 70 3a 77 | 68 61 74 20 69 73 20 77 |: Help:w|hat is w|
|00000080| 72 6f 6e 67 20 74 68 69 | 73 20 63 6f 64 65 3f 0a |rong thi|s code?.|
|00000090| 44 61 74 65 3a 20 54 75 | 65 2c 20 30 39 20 41 70 |Date: Tu|e, 09 Ap|
|000000a0| 72 20 31 39 39 36 20 31 | 36 3a 31 39 3a 30 34 20 |r 1996 1|6:19:04 |
|000000b0| 2b 30 31 30 30 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |+0100.Or|ganizati|
|000000c0| 6f 6e 3a 20 49 42 4d 20 | 55 4b 20 4c 61 62 6f 72 |on: IBM |UK Labor|
|000000d0| 61 74 6f 72 69 65 73 20 | 4c 74 64 2e 0a 4d 65 73 |atories |Ltd..Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 36 41 37 46 |sage-ID:| <316A7F|
|000000f0| 45 38 2e 31 39 41 31 40 | 77 69 67 68 74 2e 68 75 |E8.19A1@|wight.hu|
|00000100| 72 73 6c 65 79 2e 69 62 | 6d 2e 63 6f 6d 3e 0a 52 |rsley.ib|m.com>.R|
|00000110| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 6b 33 70 |eference|s: <4k3p|
|00000120| 33 71 24 6e 37 36 40 62 | 72 61 68 6d 73 2e 75 64 |3q$n76@b|rahms.ud|
|00000130| 65 6c 2e 65 64 75 3e 0a | 52 65 70 6c 79 2d 54 6f |el.edu>.|Reply-To|
|00000140| 3a 20 6d 61 78 2d 6c 74 | 6f 6e 40 74 63 70 2e 63 |: max-lt|on@tcp.c|
|00000150| 6f 2e 75 6b 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |o.uk.NNT|P-Postin|
|00000160| 67 2d 48 6f 73 74 3a 20 | 77 69 67 68 74 2e 68 75 |g-Host: |wight.hu|
|00000170| 72 73 6c 65 79 2e 69 62 | 6d 2e 63 6f 6d 0a 4d 69 |rsley.ib|m.com.Mi|
|00000180| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000190| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|000001a0| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|000001b0| 74 3d 75 73 2d 61 73 63 | 69 69 0a 43 6f 6e 74 65 |t=us-asc|ii.Conte|
|000001c0| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|000001d0| 64 69 6e 67 3a 20 37 62 | 69 74 0a 58 2d 4d 61 69 |ding: 7b|it.X-Mai|
|000001e0| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 32 2e 30 |ler: Moz|illa 2.0|
|000001f0| 31 20 28 58 31 31 3b 20 | 49 3b 20 41 49 58 20 32 |1 (X11; |I; AIX 2|
|00000200| 29 0a 0a 59 75 65 2d 68 | 6f 6e 67 20 5a 68 65 6e |)..Yue-h|ong Zhen|
|00000210| 67 20 77 72 6f 74 65 3a | 0a 3e 20 0a 3e 20 57 68 |g wrote:|.> .> Wh|
|00000220| 79 20 69 74 20 67 69 76 | 65 20 6d 65 20 30 2e 30 |y it giv|e me 0.0|
|00000230| 30 30 30 3f 0a 3e 20 0a | 3e 20 23 69 6e 63 6c 75 |000?.> .|> #inclu|
|00000240| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0a 3e 20 6d |de <stdi|o.h>.> m|
|00000250| 61 69 6e 20 28 29 20 7b | 0a 3e 20 64 6f 75 62 6c |ain () {|.> doubl|
|00000260| 65 20 61 3d 39 2e 30 30 | 38 3b 0a 3e 20 70 72 69 |e a=9.00|8;.> pri|
|00000270| 6e 74 66 28 22 25 66 5c | 6e 22 2c 73 71 72 74 28 |ntf("%f\|n",sqrt(|
|00000280| 61 29 29 3b 0a 3e 20 72 | 65 74 75 72 6e 20 30 3b |a));.> r|eturn 0;|
|00000290| 0a 3e 20 7d 0a 0a 54 68 | 65 20 65 72 72 6f 72 20 |.> }..Th|e error |
|000002a0| 28 61 73 20 6f 74 68 65 | 72 73 20 68 61 64 20 73 |(as othe|rs had s|
|000002b0| 61 69 64 29 20 69 73 20 | 74 68 61 74 20 79 6f 75 |aid) is |that you|
|000002c0| 20 6e 65 65 64 20 74 68 | 65 20 6d 61 74 68 2e 68 | need th|e math.h|
|000002d0| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 0a 66 6f | include| file.fo|
|000002e0| 72 20 74 68 65 20 70 72 | 6f 74 6f 74 79 70 65 20 |r the pr|ototype |
|000002f0| 66 6f 72 20 73 71 72 74 | 28 29 20 73 6f 20 74 68 |for sqrt|() so th|
|00000300| 61 74 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |at the c|ompiler |
|00000310| 6b 6e 6f 77 73 20 77 68 | 61 74 20 74 68 65 0a 66 |knows wh|at the.f|
|00000320| 75 6e 63 74 69 6f 6e 20 | 69 73 20 28 6f 74 68 65 |unction |is (othe|
|00000330| 72 77 69 73 65 20 69 74 | 20 6d 61 6b 65 20 69 74 |rwise it| make it|
|00000340| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 69 6e 74 | the def|ault int|
|00000350| 20 73 71 72 74 28 69 6e | 74 29 20 6f 72 20 73 6f | sqrt(in|t) or so|
|00000360| 6d 65 74 68 69 6e 67 0a | 2d 20 64 6f 6e 27 74 20 |mething.|- don't |
|00000370| 6b 6e 6f 77 20 69 73 20 | 69 72 72 65 6c 65 76 61 |know is |irreleva|
|00000380| 6e 74 29 2e 0a 0a 4d 79 | 20 73 75 67 67 65 73 74 |nt)...My| suggest|
|00000390| 69 6f 6e 20 69 73 20 74 | 68 61 74 20 79 6f 75 20 |ion is t|hat you |
|000003a0| 66 69 6e 64 20 77 68 61 | 74 20 74 68 65 20 63 6f |find wha|t the co|
|000003b0| 6d 70 69 6c 65 72 20 73 | 77 69 74 63 68 65 73 20 |mpiler s|witches |
|000003c0| 61 72 65 20 74 6f 20 6d | 61 6b 65 20 69 74 0a 63 |are to m|ake it.c|
|000003d0| 68 65 63 6b 20 74 68 61 | 74 20 65 76 65 72 79 20 |heck tha|t every |
|000003e0| 66 75 6e 63 74 69 6f 6e | 20 68 61 73 20 61 20 70 |function| has a p|
|000003f0| 72 6f 74 6f 74 79 70 65 | 20 69 6e 20 73 63 6f 70 |rototype| in scop|
|00000400| 65 2e 20 54 68 61 74 20 | 77 61 79 2c 20 74 68 65 |e. That |way, the|
|00000410| 0a 63 6f 6d 70 69 6c 65 | 72 20 77 69 6c 6c 20 77 |.compile|r will w|
|00000420| 61 72 6e 20 79 6f 75 20 | 69 66 20 79 6f 75 20 6d |arn you |if you m|
|00000430| 69 73 73 20 6f 6e 65 20 | 6f 75 74 20 2d 20 6f 72 |iss one |out - or|
|00000440| 20 6d 69 73 73 2d 73 70 | 65 6c 6c 20 69 74 20 65 | miss-sp|ell it e|
|00000450| 74 63 20 65 74 63 0a 28 | 77 68 69 63 68 20 77 6f |tc etc.(|which wo|
|00000460| 75 6c 64 20 62 65 20 70 | 69 63 6b 65 64 20 75 70 |uld be p|icked up|
|00000470| 20 62 75 74 20 74 68 65 | 20 6c 69 6e 6b 20 65 64 | but the| link ed|
|00000480| 69 74 6f 72 20 61 6e 79 | 77 61 79 29 2e 0a 0a 48 |itor any|way)...H|
|00000490| 6f 70 65 20 74 68 69 73 | 20 68 65 6c 70 73 2e 0a |ope this| helps..|
|000004a0| 0a 4d 61 78 2e 0a 0a 2d | 2d 20 0a 20 20 20 20 5f |.Max...-|- . _|
|000004b0| 5f 5f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |__ | |
|000004c0| 20 20 20 20 20 20 20 20 | 6d 61 69 6c 74 6f 3a 6d | |mailto:m|
|000004d0| 61 78 2d 6c 74 6f 6e 40 | 74 63 70 2e 63 6f 2e 75 |ax-lton@|tcp.co.u|
|000004e0| 6b 20 0a 20 20 2f 20 20 | 2f 20 20 2f 20 20 5f 20 |k . / |/ / _ |
|000004f0| 20 20 20 20 20 20 2f 20 | 20 20 20 20 2f 20 20 5f | / | / _|
|00000500| 20 20 5f 5f 20 5f 5f 20 | 20 20 5f 20 20 20 5f 5f | __ __ | _ __|
|00000510| 20 20 20 5f 0a 20 2f 20 | 20 2f 20 20 2f 20 2f 5f | _. / | / / /_|
|00000520| 2f 20 7c 2f 20 20 2f 20 | 20 2f 20 20 2f 20 2f 5f |/ |/ / | / / /_|
|00000530| 2f 20 20 2f 20 20 2f 5f | 20 20 20 2f 5f 2f 20 2f |/ / /_| /_/ /|
|00000540| 20 2f 20 2f 20 2f 5f 2f | 20 2f 7c 20 2f 0a 2f 20 | / / /_/| /| /./ |
|00000550| 20 2f 20 20 2f 20 2f 20 | 20 2f 20 2f 7c 20 20 2f | / / / | / /| /|
|00000560| 5f 2f 5f 2f 20 2f 20 20 | 2f 20 20 2f 20 20 2f 5f |_/_/ / |/ / /_|
|00000570| 20 20 2f 20 20 7c 20 20 | 2f 20 2f 20 2f 20 2f 20 | / | |/ / / / |
|00000580| 20 2f 20 2f 20 7c 2f 0a | | / / |/.| |
+--------+-------------------------+-------------------------+--------+--------+